package com._5704.website.form;

import com._5704.website.vo.userVO.UserVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
import java.util.Queue;

@Data
public class ActivityForm {
//    @NotNull(message = "id不能为空")
    private Integer id;

    @NotNull(message = "标题不能为空")
    private String title;

    @NotNull(message = "内容不能为空")
    private String content;

    @NotNull(message = "活动时间不能为空")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm")
    private Date activeTime;

    @NotNull(message = "公布时间不能为空")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm")
    private Date showTime;

    @NotNull(message = "类型不能为空")
    private Integer type;

    @NotNull(message = "人群不能为空")
    private String people;

    @NotNull(message = "是否公开不能为空")
    private Boolean isPublic;

    private List<String> picture;

}
